import math
a=int(input("please enter the value of a"))
b=int(input("please enter the value of b"))
c=int(input("please enter the value of c"))
if a==0:
    print("不是一个一元二次方程")
else:
    m=b*b-4*a*c
    if m>0:
        x1=(-b+math.sqrt(m))/(2*a)
        x2=(-b-math.sqrt(m))/(2*a)
        print(x1)
        print(x2)
    elif m==0:
        x1=x2=-b/(2*a)
        print(x1)
        print(x2)
    else:
        print("此方程无实数根")

